<?php
class LookupValue extends AppModel {
    var $name = 'LookupValue';
    var $primaryKey = 'lookup_value_id';
    var $displayField = 'meaning';
    
    function getCode($id = null)
    {
    	if (!$id)
    		return false;
    	
    	$fields = $this->read(null, $id);
    	
    	return $fields['LookupValue']['lookup_code'];
    }
}
?>
